import instance from '../config/index'
import qs from 'qs'
 let  wapUrl="http://api.51clj.com";
export default {
    // 用户登录
   
    userLogin(data){
        return instance.post(instance.wapUrl+'/app/open/user/login/doLogin',qs.stringify(data))
    },
    // 用户获取验证码
    userGetRegistCode(data){
        return instance.post(instance.wapUrl+'/app/open/user/regist/getRegistCode',qs.stringify(data))
    },
    //验证验证码
    userCheckRegistCode(data){
        return instance.post(instance.wapUrl+'/app/open/user/regist/checkRegistPwdCode',qs.stringify(data))
    },
    //用户注册
    userRegister(data){
        return instance.post(instance.wapUrl+'/app/open/user/regist/doRegister',qs.stringify(data))                                 
    },
    //忘记密码验证码
    userGetForgotCode(data){
        return instance.post(instance.wapUrl+'/app/open/user/forgotPwd/getForgotCode',qs.stringify(data))
    },
    //忘记密码确定
    userForgot(data){
        return instance.post(instance.wapUrl+'/app/open/user/forgotPwd/doForgotPwd',qs.stringify(data))
    },
    //修改提现密码  验证码
     getForgotCode(data){
        return instance.post(instance.wapUrl+'/app/member/payPassword/getForgotCode',qs.stringify(data))
    },
    //修改提现密码  验证码 校验
     checkPwdCode(data){
        return instance.post(instance.wapUrl+'/app/member/payPassword/checkPwdCode',qs.stringify(data))
    },
}